import requests from "@/api/request";

//绑定银行卡
export function bindBandCard(data){
    return requests({
        url:"/user/bindingBankCard",
        method:"post",
        data: data
    })
}

//查询已绑定的银行卡
export function findIsBindingCard(userId){
    return requests({
        url: "/user/bindingRelations/"+userId,
        method:"get"
    })
}

//解绑
export function unbindingCard(id,userId){
    const req = {
        id:id,
        userId:userId
    }
    return requests({
        url: "/user/cancelBindingRelation",
        method:"post",
        data: req
    })
}
